<script setup lang="ts">
import CommonDialog from "@/newComponents/CommonDialog.vue";
const dialogRef = ref();

// 暴露 open 方法，让爷爷组件可以调用
const open = (row: any) => {
  dialogRef.value?.open(row);
};

defineExpose({ open });
</script>

<template>
  <common-dialog v-bind="{ ...$props, ...$attrs }" ref="dialogRef">
    <template #dialogFormContent="{ formData }">
      <el-form-item label="评价内容" prop="content" :rules="{ required: true }">
        <el-input v-model="formData.name" placeholder="请输入评价内容" />
      </el-form-item>
    </template>
  </common-dialog>
</template>

<style scoped lang="scss"></style>
